package com.zkyc.framework.common.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Association)实体类
 *
 * @author wj
 * @since 2022-11-15 19:06:03
 */
@TableName("web_association")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Association implements Serializable {
    private static final long serialVersionUID = -60350505599861862L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 父id
     */
    private Integer parentId;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 协会名称
     */
    private String centerName;
    /**
     * 图片
     */
    private String picture;
    /**
     * 章程制度
     */
    private String rule;

    private String introduce;
    /**
     * 协会剪影
     */
    @TableField(exist = false)
    private List<File> silhouette;
    /**
     * 活动视频
     */
    @TableField(exist = false)
    private List<File> video;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;

    @TableField(exist = false)
    private List<Association> children;
}

